function Rotation_chart(){
    var box=this.document.getElementsByClassName("re")[0];
    var lik=box.getElementsByTagName("li");
    function fun(i,j) {
        lik[i].style.opacity=1;
        lik[j].style.opacity=0;
    }
    fun(0,1);
    var i =0;
    function auto() {
        if(++i>=4) {
            i=0;
            fun(0,3);
        } else fun(i,i-1);
    }
    var timer=this.setInterval(auto,3000);
    box.onmouseover = function ()
    {
        clearInterval(timer);
    }
    box.onmouseout=function()
    {
        timer = setInterval(auto, 3000);
    }
}
window.onload=function(){
    Rotation_chart();
}